import React from 'react';
import {DatePicker} from 'antd';

const ChargeDateInput = ({ label, value, onChange}) => {
    const handleInputChange = (e) => {
        onChange(e)
    };

    return (
        <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
            <span style={{ minWidth: 60 }}>{label}:</span>
            <DatePicker
                style={{ width: 180 }}
                value={value}
                onChange={handleInputChange}
            />
        </div>
    );
};

export default ChargeDateInput